package com.xbongbong.pro.enums.menu.enums;

import com.xbongbong.i18n.util.I18nMessageUtil;
import com.xbongbong.pro.enums.AccessLinkEnum;
import com.xbongbong.pro.enums.permission.enums.ProPermissionAliasEnum;
import lombok.Getter;

/**
 * @author 吴峰
 * @version v1.0
 * @date 2019/1/15 15:07
 * @desrcption 数据连接
 * @since v1.0
 */
@Getter
public enum DataConnectionEnum {

    /**
     * 畅捷通T+
     */
    DATA_CONNECTION_TPLUS("enum.dataConnection.name.data_connection_tplus", "dataConnectionTplus", AccessLinkEnum.DATA_CONNECTION_TPLUS, ProPermissionAliasEnum.DATA_CONNECTION_TPLUS.getAlias()),

    ;

    private String name;

    private String alias;

    private AccessLinkEnum accessLinkEnum;

    private String permission;

    DataConnectionEnum(String name, String alias, AccessLinkEnum accessLinkEnum, String permission){
        this.name = name;
        this.alias = alias;
        this.accessLinkEnum = accessLinkEnum;
        this.permission = permission;
    }

    public String getName() {
        return I18nMessageUtil.getMessage(name);
    }
}
